Class DungeonRegistryImpl

java.lang.Object
jeresources.compatibility.DungeonRegistryImpl
All Implemented Interfaces:
IDungeonRegistry

public class DungeonRegistryImpl extends Object implements IDungeonRegistry
  • Constructor Details

    • DungeonRegistryImpl

      protected DungeonRegistryImpl()
  • Method Details

    • registerCategory

      public void registerCategory(@Nonnull String category, @Nonnull String localization)
      Description copied from interface: IDungeonRegistry
      Add a new category IDungeonRegistry.registerCategory("chest/chest_type", "localization.string");
      Specified by:
      registerCategory in interface IDungeonRegistry
      Parameters:
      category - the category name
      localization - the translation key
    • registerChest

      public void registerChest(@Nonnull String category, @Nonnull net.minecraft.resources.ResourceLocation tableLocation)
      Specified by:
      registerChest in interface IDungeonRegistry
      Parameters:
      category - can be a localization string directly or a registered category
      tableLocation - the ResourceLocation of the loot table
    • registerChest

      public void registerChest(@Nonnull String category, @Nonnull net.minecraft.world.level.storage.loot.LootTable lootTable)
      Specified by:
      registerChest in interface IDungeonRegistry
      Parameters:
      category - can be a localization string directly or a registered category
      lootTable - the actual LootTable
    • commit

      protected static void commit()